<?php

	
use think\Route;


Route::get('api/comment/:aid/:page','api/comment/read');//查询
Route::get('api/comment/:id','api/comment/read');//查询
Route::get('api/comment/lastest','api/comment/lastest');//查询
Route::post('api/comment/:aid','api/comment/add'); //新增
Route::put('api/comment/:id','api/comment/update'); //修改
Route::delete('api/comment/:id','api/comment/delete'); //删除

Route::rule([
	    'categories'=> 'index/Index/categories',
	    'tags' 		=> 'index/Index/tags',
	    'album'		=> 'index/Album/album',
	    'messages' 	=> 'index/Index/messages',
	    'links' 	=> 'index/Index/links',
	    'about' 	=> 'index/Index/about',
        'user'      => 'index/user/user',
    'category/:slug'=> 'index/Index/category',
    'tag/:slug'     => 'index/Index/tag',
    'user'=>'index/User/user',
    'author/:author' =>'index/Index/author',
    'article/:slug'=>'index/Index/article',
    'search/'=>'index/Index/search',
    'admin/login' => 'admin/user/login',
    'admin/message'=>'admin/message/index',
    'admin/album'=>'admin/album/index',
    'admin/logout'=>'admin/user/logout'

]);